<div class="box box-primary">
    <div class="box-header with-border">
        <h3 class="box-title">添加管理员</h3>
    </div>
    <!-- /.box-header -->
    <!-- form start -->
    <form class="form-horizontal">
        {{ csrf_field() }}
        <div class="box-body">
            <div class="form-group">
                <label class="col-sm-2 control-label" for="email">用户名</label>
                <div class="col-sm-10">
                    <input type="text" class="form-control" readonly name="email" id="email" value="{{ $admin->email }}">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-2 control-label" for="password">密码</label>
                <div class="col-sm-10">
                    <input type="password" class="form-control" name="password" placeholder="密码">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-2 control-label" for="password_confirmation">确认密码</label>
                <div class="col-sm-10">
                    <input type="password" class="form-control" name="password_confirmation" placeholder="确认密码">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-2 control-label" for="name">姓名</label>
                <div class="col-sm-10">
                    <input type="text" class="form-control" name="name" value="{{ $admin->name }}">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-2 control-label" for="mobile">电话</label>
                <div class="col-sm-10">
                    <input type="text" class="form-control" name="mobile" value="{{ $admin->mobile }}">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-2 control-label" for="status">用户状态</label>
                <div class="col-sm-10 radio">
                    @if($admin->status == 1)
                        <label><input type="radio" name="status" value="1" checked>正常</label>
                        <label><input type="radio" name="status" value="0">禁用</label>
                    @elseif($admin->status == 0)
                        <label><input type="radio" name="status" value="1">正常</label>
                        <label><input type="radio" name="status" value="0" checked>禁用</label>
                    @endif
                </div>
            </div>
        </div>
        <!-- /.box-body -->

        <div class="box-footer">
            <button type="button" class="btn btn-primary" data-url="{{ url('admin/adminuser/'.$admin->id) }}" data-type="PATCH" onclick="subAction(this)">提 交</button>
        </div>
    </form>
</div>